package bo.zhao.action.simple_factory.product;

public class MailSender implements ISender {

	private long delay = -1;

	public long getDelay() {
		return delay;
	}

	public void setDelay(long delay) {
		this.delay = delay;
	}

	@Override
	public boolean send(String content) {
		System.out.println("delay "+delay+" mail:" + content);
		return false;
	}

	@Override
	public void init() {
		System.err.println("init for mail");
		
	}

	@Override
	public void prepare() {
		System.err.println("prepare for mail");
	}

}
